package city.spring.modules.oldman.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 实体类：退住申请
 *
 * @author pxm
 * @date 2020-09-30 09:51:23
 */
@Data
@TableName("oldman_leave_apply")
public class OldmanLeaveApplyEntity implements Serializable {

    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 登记人
     */
    private String registrant;

    /**
     * 老人
     */
    private String oldman;

    /**
     * 申请时间
     */
    private LocalDate applyDate;

    /**
     * 入院时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date checkInTime;

    /**
     * 离院时间
     */
    private LocalDate leaveDate;

    /**
     * 退住原因
     */
    private String reason;

    /**
     * 退住形式
     */
    private String leaveForms;

    /**
     * 退款账号
     */
    private String refundAccoun;

    /**
     * 处理状态
     */
    private Integer handleStatus;

    /**
     * 创建时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime gmtModified;
}